<MDXHeader title="Label" description="Renders an accessible label associated with controls." />

<ComponentPreview name="checkbox-demo" />

## Installation

<Tabs defaultValue="cli">

<TabsList>
  <TabsTrigger value="cli">CLI</TabsTrigger>
  <TabsTrigger value="manual">Manual</TabsTrigger>
</TabsList>

<TabsContent value="cli">

```bash
npx solidui-cli@latest add label
```

</TabsContent>

<TabsContent value="manual">

<Step>Copy and paste the following code into your project: </Step>

<ComponentSource name="label" />

</TabsContent>

</Tabs>

## Usage

```tsx
import { Label } from "~/components/ui/label"
```

```tsx
<Label for="email">Your email address</Label>
```
